<%@ page import="java.util.List" %>
<%@ page import="entity.Message" %>
<%--
  Created by IntelliJ IDEA.
  User: zhouya
  Date: 2019/6/22/0022
  Time: 0:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%List<Message> messages =(List<Message>)request.getAttribute("messages");%>
    <style rel="stylesheet" type="text/css" >
        table{border: 1px solid gray;border-collapse: collapse;width: 100% }
        td{border: 1px solid gray;text-align: center;}
        a {color: rgba(1, 4, 12, 0.97); text-decoration:none;}
        a:visited {text-decoration:none;}
        a:hover {color:#ba2636;text-decoration:underline;}
        a:active {color:#ba2636;}
    </style>
</head>
<body>
<form action="ReviewPassageDetailServlet" method="post">
    <table>
        <%for(Message ls: messages){%>
        <tr>
            <td style="width: 15%">留言ID</td><td><%=ls.getMessageId()%></td>
        </tr>
        <tr>
            <td style="width: 15%">创建日期</td><td><%=ls.getCreateDate()%></td>
        </tr>
        <tr>
            <td style="width: 15%">文章内容</td><td><%=ls.getContent()%></td>
        </tr>
        <tr>
            <td style="width: 15%">留言状态</td><td><%=ls.getStatus()%></td>
        </tr>
        <%}%>
    </table>
    <a href="AdminAllMessageServlet?status=<%=messages.get(0).getStatus()%>">返回</a>
</form>
</body>
</html>